Skip to content

Conversation

@crueter
Copy link
Collaborator

@crueter crueter commented Dec 28, 2025

Port of #5159

Find modules are preferred for pkgconfig/otherwise non-CMake libraries.
Let's use that here for xxHash.

Signed-off-by: crueter [email protected]

@crueter crueter force-pushed the xxhash-find branch 2 times, most recently from 94fda7c to c1d8ef5 Compare December 28, 2025 05:14
Port of FEX-Emu#5159

Find modules are preferred for pkgconfig/otherwise non-CMake libraries.
Let's use that here for xxHash.

Signed-off-by: crueter <[email protected]>
@Sonicadvance1 Sonicadvance1 merged commit 5a47565 into FEX-Emu:main Dec 29, 2025
13 checks passed
@crueter crueter deleted the xxhash-find branch December 29, 2025 20:59
set(CMAKE_LINKER_FLAGS_RELEASE "${CMAKE_LINKER_FLAGS_RELEASE} -fomit-frame-pointer")

## Modules ##
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMakeModules/)
Copy link
Member

@neobrain neobrain Jan 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this folder to Data/CMake/Modules? Trying to avoid too many randomly placed top-level directories, and it's more sensible to keep this closer to our other CMake utilities.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A top-level CMakeModules directory is usually preferred for Find modules and toolchains, but I can move this and LinkerGC in a PR if needed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that convention probably makes sense for simpler projects, but our top-level got way too cluttered previously (to the point of hindering discoverability) with all the other things we juggle around. So a follow-up would be much appreciated!

crueter added a commit to crueter/FEX that referenced this pull request Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants